import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'

import '@/style/index.scss'
import global from './common/global'

import {
  Input,
  Dialog,
  Button,
  Loading,
  Carousel,
  CarouselItem,
  Table,
  TableColumn,
  Popover,
  Pagination,
  Message,
  MessageBox,
  Tabs,
  TabPane,
} from "element-ui"

Vue.use(Input)
Vue.use(Carousel)
Vue.use(CarouselItem)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Popover)
Vue.use(Pagination)
Vue.use(Loading)
Vue.use(Dialog)
Vue.use(Button)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm


Vue.config.productionTip = false
Vue.use(global)

new Vue({
  render: h => h(App),
  // 挂载到Vue示例上
  router,
  store
}).$mount('#app')
